import request from '@/utils/request'

// export function send() {
//   return request({
//     url: '/table/list',
//     method: 'get',
//   })
// }
//   export function setstatus(sizeForm) {
//     return request({
//       url: '/eduservice/study/setstatus',
//       method: 'post',
//       data:{study:sizeForm}
//     })
// }

export default {
  send(study) {
      return request({
        url: '/eduservice/study/study',
        method: 'post',
        data:study
      })
    },

setstatus(sizeForm) {
    return request({
      url: '/eduservice/study/setstatus',
      method: 'post',
      data:sizeForm
    })
},

search(){
  return request({
    url: '/eduservice/study/search',
    method: 'get'
  })
},
sendcheck(id,adcode,ipaddress,port){
  return request({
    url: `/eduservice/study/sendcheck`,
    method: 'post',
    data:{"id":id,
  "adcode":adcode,
"ipaddress":ipaddress,
"port":port}
  })
},
bagdown(multipleSelection,adresscode,ipaddress,port){
  return request({
    url: `/eduservice/study/bagdown/${adresscode}/${ipaddress}/${port}`,
    method: 'post',
    data :multipleSelection
  })
},


searchInname(){
  return request({
    url: '/eduservice/study/searchInname',
    method: 'get',
  })

},


online(value,adcode,ipaddress,port){

  return request({
    url: `/eduservice/study/online/${value}/${adcode}/${ipaddress}/${port}`,
    method: 'get',
  })
},
del(id){

  return request({
    url: '/eduservice/study/del',
    method: 'post',
    data :{
      "id":id
    }
  })

},
searchinstructions(){

return request({

  url: '/eduservice/study/searchinstructions',

method:'get'

})


}





}
